<script type="text/javascript">
	//视频类型
	videoType="${videoType!}";
</script>
<#if videoType=='baiJiaYun'> <#-- 百家云-->
	<div id='baiJiaYun_div' style="width:100%;height:100%"></div>
	<script type="text/javascript">
		var videoUrl = '${videoUrl!}';
		var player = new bjcPlayer('#baiJiaYun_div', {
			token: videoUrl,
			onended: function () {
				console.log('onended');
			},
			onplay: function () {

				console.log('onplay');
			},
			onpause: function () {
				console.log('onpause');
			},
			onplaybegin:function(){
				$('#baiJiaYun_div').unbind("click");
			},
			onplayfinish: function () {
				$("#baiJiaYun_div").click(function () {
					player.play(videoUrl);
				});
			},
			onpartfinish: function () {
				console.log('onpartfinish event');
			},
			onerror: function (e) {
				console.log('onerror');
				console.log(e);
			}
		});
		player.play(videoUrl);
	</script>
</#if>
<#if videoType=='tengxunyun'> <#-- 腾讯云-->
	<div id='tengxun_div' style="width:100%;height:100%">
		<iframe src="" id="video_iframe" frameborder="0" width="100%" height="100%" scrolling="no"></iframe>
	</div>
	<script type="text/javascript">
		var url = "http://play.video.qcloud.com/iplayer.html?$appid=1253254776&$fileid=${videoUrl!}&$autoplay=0&$sw=1280&$sh=720";
		url = url.substring(0,url.indexOf("$sw="));
		var width = $("#tengxun_div").width();
		var height = $("#tengxun_div").height();
		url = url+"$sw="+width+"&$sh="+height;
		$("#video_iframe").attr("src",url);
	</script>
<#else>
	<iframe id="playervideoiframe" src="${videoUrl!}" width="100%" height="100%" frameborder="0" scrolling="no"></iframe>
</#if>